package com.service;

import com.mapper.ItemMapper;
import com.model.Item;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemService {
    @Autowired
    private ItemMapper itemMapper;

    public List<Item> getItemList(){
        return itemMapper.getItemList();
    }

    public List<Item> getItemByName(String name){
        return itemMapper.getItemByName(name);
    }

    public Item getItemById(Long id){
        return itemMapper.getItemById(id);
    }
}
